CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
Project(LivePublisher)
SET(CMAKE_CXX_COMPILER      g++)
SET(CMAKE_CXX_FLAGS         "-g3 -Wall -std=c++11  -Wl,-Bsymbolic -D__FILE__='\"$<\"'")
SET(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/Lib)

add_compile_options(-Wall -Wno-deprecated-declarations -Wno-builtin-macro-redefined)

SET(LFC ${PROJECT_SOURCE_DIR}/../LFC/Include)
INCLUDE_DIRECTORIES(${LFC})

aux_source_directory(Source/LivePublisherHandler FILE)
aux_source_directory(Source/Media FILE)
aux_source_directory(Source/Media/PacketFlv FILE)
aux_source_directory(Source/Media/PacketTs FILE)
aux_source_directory(Source/Public FILE)
aux_source_directory(Source/SendStream FILE)
aux_source_directory(Source/SendStream/SendStreamHandler FILE)

add_library(LivePublisher STATIC ${FILE})
